// let cat_id=getQueryVariable('cat_id')
    $('.filter .condition').text('')
    $.get('/api/waimai/cate.jsp',{cat_id},res=>{
    

      $.each(res.data,(index,item)=>{
        let sonHtml=``
        $.each(item.attr_value.split(','),(sonIndex,sonItem)=>{
          if(item.attr_name==='分类'){
            sonHtml+=`<li> <a id="${item.attr_id.split(',')[sonIndex]}" href="javascript:;">${sonItem}</a> </li>`
          }else{
            sonHtml+=`<li> <a href="javascript:;">${sonItem}</a> </li>`
          }
          
        })
        let html=`
        <div class="cont clear">
          <div class="classification">${item.attr_name}</div>
          <div class="all on">全部</div>
          <ul class="more clear">
            ${sonHtml}
          </ul>
        </div>`
        $('.filter .condition').append(html)
      })
    },'json')